import { request, METHOD } from '@/utils/request';
import qs from 'qs';

// 查询事件信息维护列表
export const getList = (type) => {
  return request('/ftm/eventInMa/listInform?type='+type, METHOD.GET);
};

// 查询下拉框数据
export const Dropdownbox = (type) => {
  return request('/ftm/eventInMa/queryImform?type='+type ,METHOD.GET )
}

// 新增事件信息维护数据
export const Newevent = (params) => {
  return request('/ftm/eventInMa/saveData',METHOD.POST,params )
}

// 修改事件信息维护数据
export const modify = (params) => {
  return request('/ftm/eventInMa/updateData' ,METHOD.POST,params )
}
// 根据id删除事件维护数据
export const maintain = (type) => {
  return request('/ftm/eventInMa/removeData?type='+type ,METHOD.GET )
}